<span #buttontag>
  <button nz-button nzType="{{tempType}}"
          [ngStyle]="styleObj"
          *ngIf="show && tempType != 'link'"
          [nzLoading]="loading"
          [nzDanger]="tempType =='danger'"
          nz-tooltip
          nzTooltipPlacement="top"
          [nzTooltipTitle]="tipTitle"
          [disabled]="disabled"
          [ngClass]="buttonClass">
  <i *ngIf="icon" nz-icon nzType="{{icon}}"></i>
    {{name}}
</button>
</span>

<span #linktag class="dhl-link-style">
  <div [ngClass]="buttonClass"
       [nzTooltipTitle]="titleTemplate"
       nz-tooltip
       nzTooltipPlacement="top"
       style="display: inline-block;" *ngIf="show && tempType == 'link'">
   {{name}}
  </div>
</span>


<ng-template #titleTemplate let-thing>
  <span [innerHTML]="tipTitle"></span>
</ng-template>
